package com.mobapping;

import java.util.ArrayList;

public interface IDataAdapter {
	
	public interface IArrayListDataListener{
		public void dataArrived(ArrayList<Object> data);
	}
	

	public class ElementInfo {

		public String name;
		public String address;
		public String phoneNumber;
		public boolean isPharmacy;
		public int id;
		public double lattitude;
		public double longitude;
		public String URL;
		
		
		public ElementInfo(String name, String address, String phoneNumber,boolean isPharmacy, int id,double lattitude, double longitude,String URL ) {
			this.name = name;
			this.address = address;
			this.phoneNumber = phoneNumber;
			this.isPharmacy = isPharmacy;
			this.id=id;
			this.lattitude=lattitude;
			this.longitude=longitude;
			this.URL=URL;
		}
		
	}
	
	public class County {
		public String name;
		
		public County(String name) {
			this.name = name;
		}
	}
	
	public void search(String countyName, int parentId, IArrayListDataListener dataListener);
	
	public void search(double lattitude, double longitude, int range,IArrayListDataListener dataListener);
	
	public void getElements(final int parentId, final IArrayListDataListener dataListener);

}
